<?php include('./templete/public/header.php'); ?>
<title><?php echo $web['site_config']['site_title'].'_'; ?>职位列表</title>
<body>
	<header class="clearfix">
		<a class="fl header_return"><i class="iconzuojiantou1 iconfont">&#xe616;</i>返回</a>
		<a class="header_new">招聘区域</a>
		<a class="fr header_more"><i class="iconmore iconfont">&#xe637;</i></a>
	</header>
	<div class="recruit_header">
		<a href="<?php echo url('company/lists'); ?>" class="iconzjt iconfont">&#xe616;</a>
			<span class="recruit_pic pr" style=" background-size: cover; background-image: url(<?php echo $co_data['img_url']; ?>);"></span>
			<span class="recruit_name"><?php echo $co_data['name']; ?></span>
		</div>
	<div class="company_container works_container">
		<div class="search_containerbig ">
			<div  class="search_container">
				<i class="iconfont icon_search" onclick="search_zw()">&#xe89e;</i>
				<form action="/index/company/zw_list" method="post" id="form_search">
				<input type="text" placeholder="请输入关键字" name="name" value="" />
				<input type="hidden"  name="id" value="<?php echo $co_data['id']; ?>" />
				</form>
			</div>
			<div class="select">
				<select id="city">
					<option value="">工作地点</option>
					<?php foreach ($city_list as $city): ?>
						<option value="<?php echo $city; ?> "> <?php echo $city; ?> </option>
					<?php endforeach ?>
					
				</select>
				<select id="wage">
					<option value="">薪资</option>
					<?php foreach ($wage_list as $wage): ?>
						<option value="<?php echo $wage; ?>"><?php echo $wage; ?></option>
					<?php endforeach ?>
				</select>
				<select id="worktime">
					<option value="">工作时间</option>
					<?php foreach ($worktime_list as $worktime): ?>
						<option value="<?php echo $worktime; ?>"><?php echo $worktime; ?></option>
					<?php endforeach ?>
				</select>
				<select id="type">
					<option value="">工作性质</option>
					<option value="1">兼职</option>
					<option value="2">全职</option>
				</select>
			</div>
		</div>
			<?php foreach ($list as $key => $v): ?>
			<div class="works_container_warpper">
				<a href="/index/zhiwei/index?id=<?php echo $v['jobid'];?>">	
					<div class="works_tst clearfix">
						<span class="works_tst_top fl one-txt-cut"><?php echo $v['jobname']; ?></span>
						<span class="works_date fr"><?php echo $v['update_time']; ?></span>
					</div>
					<div class="works_tst02 clearfix">
						<span class="works_tst_top02 one-txt-cut fl"><?php echo $v['cid']; ?></span>
						<!-- <span class="works_date fr">3.1KM</span> -->
					</div>
					<div class="works_work">
						<span href="javascript:;"><i class="iconfont icont">&#xe8ad;</i><?php echo $v['city']; ?></span>
						<span href="javascript:;"><i class="iconfont icont">&#xe8a3;</i><?php echo $v['wage']; ?></span>
						<span href="javascript:;"><i class="iconfont icont">&#xe8ac;</i><?php echo $v['worktime']; ?></span>
						<span href="javascript:;"><i class="iconfont icont">&#xe8ab;</i><?php echo $v['type']; ?></span>
					</div>
				</a>		
			</div>
			<?php endforeach ?>
			
	</div>
	<hr style="height: 160px;border: none;">
<?php include('./templete/public/footer.php'); ?>

<script>
	function search_zw() {
		document.getElementById('form_search').submit();
	}
	$("select#city").on("change",function(){
		search_job(1,$("option:selected",this).val());
	})
	$("select#wage").on("change",function(){
		search_job(2,$("option:selected",this).val());
	})
	$("select#worktime").on("change",function(){
		search_job(3,$("option:selected",this).val());
	})
	$("select#type").on("change",function(){
		search_job(4,$("option:selected",this).val());
	})


	// $("select#city ").click(function(){
	// 	search_job(1,$(this).val());
 // 	});
 // 	$("select#wage").click(function(){
	// 	search_job(2,$(this).val());
 // 	});
 // 	$("select#worktime").click(function(){
	// 	search_job(3,$(this).val());
 // 	});
 // 	$("select#type").click(function(){	
 //    	search_job(4,$(this).val());
 // 	});

 	function search_job(m,n) {
 		console.log(m,n);
 		var id = <?php echo $co_data['id']; ?>;
 		window.location.href = '/index/company/zw_list?cid='+id+'&m='+m+'&n='+n;
 	}
</script>









</body>

</html>

